package com.woniuxy.intellihome.service;

import com.woniuxy.intellihome.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
public interface OrderService extends IService<Order> {
    //根据userid获取order
    public List<Order> getByUserId(int userId);
    //新增order并生成id
    public void add(Order order);
    //根据orderNum查询订单
    public Order getByOrderNum(String orderNum);
}
